-- MySQL dump 10.13  Distrib 5.7.9, for Win64 (x86_64)
--
-- Host: 127.0.0.1    Database: shcallcenter
-- ------------------------------------------------------
-- Server version	5.7.22

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;

--
-- Table structure for table `sh_dept`
--

DROP TABLE IF EXISTS `sh_dept`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `sh_dept` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `NAME` varchar(45) NOT NULL,
  `PARENTID` int(11) NOT NULL DEFAULT '0',
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf16;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `sh_dept`
--

LOCK TABLES `sh_dept` WRITE;
/*!40000 ALTER TABLE `sh_dept` DISABLE KEYS */;
/*!40000 ALTER TABLE `sh_dept` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `sh_users`
--

DROP TABLE IF EXISTS `sh_users`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `sh_users` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `LOGINNAME` varchar(45) NOT NULL,
  `PASSWORD` varchar(45) NOT NULL,
  `REALNAME` varchar(45) NOT NULL,
  `PHONE` varchar(45) DEFAULT NULL,
  `TEL` varchar(45) DEFAULT NULL,
  `DEPTID` int(11) DEFAULT NULL,
  `POST` varchar(45) DEFAULT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf16;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `sh_users`
--

LOCK TABLES `sh_users` WRITE;
/*!40000 ALTER TABLE `sh_users` DISABLE KEYS */;
/*!40000 ALTER TABLE `sh_users` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `sh_wd`
--

DROP TABLE IF EXISTS `sh_wd`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `sh_wd` (
  `ID` int(11) NOT NULL,
  `DEPTCODE` varchar(45) NOT NULL,
  `DEPTNAME` varchar(45) DEFAULT NULL,
  `OFFICE` varchar(45) DEFAULT NULL,
  `CUSTNAME` varchar(45) DEFAULT NULL,
  `CUSTID` int(11) DEFAULT NULL,
  `PHONE` varchar(45) DEFAULT NULL,
  `ADDRESS` varchar(512) DEFAULT NULL,
  `PCODE` varchar(45) DEFAULT NULL,
  `PNAME` varchar(45) DEFAULT NULL,
  `SPECS` varchar(45) DEFAULT NULL,
  `PDATE` datetime DEFAULT NULL,
  `PFACTORY` varchar(45) DEFAULT NULL,
  `ISSUSECODE` varchar(45) DEFAULT NULL,
  `ISSUSE` varchar(512) DEFAULT NULL,
  `STATE` int(11) DEFAULT NULL,
  `CREATEDATE` datetime DEFAULT NULL,
  `CREATEBY` varchar(45) DEFAULT NULL,
  `CURPHASEDATE` datetime DEFAULT NULL,
  `CURAPPROVER` varchar(45) DEFAULT NULL,
  `CURAPPROVERID` int(11) DEFAULT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf16;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `sh_wd`
--

LOCK TABLES `sh_wd` WRITE;
/*!40000 ALTER TABLE `sh_wd` DISABLE KEYS */;
/*!40000 ALTER TABLE `sh_wd` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `sh_wdcdr`
--

DROP TABLE IF EXISTS `sh_wdcdr`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `sh_wdcdr` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `WDID` int(11) NOT NULL,
  `CDRID` varchar(45) NOT NULL,
  `CDRFILE` varchar(512) NOT NULL,
  `CDRNOTE` varchar(1024) DEFAULT NULL,
  `CREATEDATE` datetime DEFAULT NULL,
  `CREATEBY` varchar(45) DEFAULT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf16;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `sh_wdcdr`
--

LOCK TABLES `sh_wdcdr` WRITE;
/*!40000 ALTER TABLE `sh_wdcdr` DISABLE KEYS */;
/*!40000 ALTER TABLE `sh_wdcdr` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `sh_wdphase`
--

DROP TABLE IF EXISTS `sh_wdphase`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `sh_wdphase` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `WDID` int(11) NOT NULL,
  `APPROVERID` int(11) NOT NULL,
  `APPROVERNAME` varchar(45) NOT NULL,
  `APPROVETYPE` int(11) DEFAULT NULL,
  `STATE` int(11) DEFAULT NULL,
  `PHASEDESC` varchar(256) DEFAULT NULL,
  `APPROVENOTE` varchar(512) DEFAULT NULL,
  `CREATEDATE` datetime DEFAULT NULL,
  `ENDDATE` datetime DEFAULT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf16;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `sh_wdphase`
--

LOCK TABLES `sh_wdphase` WRITE;
/*!40000 ALTER TABLE `sh_wdphase` DISABLE KEYS */;
/*!40000 ALTER TABLE `sh_wdphase` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `sh_wdphasemsg`
--

DROP TABLE IF EXISTS `sh_wdphasemsg`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `sh_wdphasemsg` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `WDID` int(11) NOT NULL,
  `PHASEID` int(11) NOT NULL,
  `MESSAGE` varchar(512) DEFAULT NULL,
  `MESSAGETYPE` int(11) DEFAULT NULL,
  `CREATEDATE` datetime DEFAULT NULL,
  `CREATEBY` varchar(45) DEFAULT NULL,
  `CREATEBYID` int(11) DEFAULT NULL,
  `CREATEBYTYPE` int(11) DEFAULT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf16;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `sh_wdphasemsg`
--

LOCK TABLES `sh_wdphasemsg` WRITE;
/*!40000 ALTER TABLE `sh_wdphasemsg` DISABLE KEYS */;
/*!40000 ALTER TABLE `sh_wdphasemsg` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2019-05-05 11:00:46
